<?
include "include/config.php";  
$location='setari'; 

if(!isset($_SESSION['_user']))
{ 
header("location: login.php");
}
if($_SESSION['_level']!=0)
{ 
header("location: index.php");
}

$query_mod = mysql_query ("select * from locatii where id = '".$_GET['id']."' ") ;
$nod=mysql_fetch_array($query_mod);
include "include/head.php"; 

?>


<div id="container">
<? include "include/meniu.php";  ?>

<div id="submenu"><div><div>
    <ul>
        <li ><a href="departamente.php">Departamente</a></li>
        <li ><a href="camera.php">Camere</a></li>
        <li id="off2"><a href="">Locatii</a></li>
    </ul>
</div></div></div>

<div class="" ></div>
<div id="content"><div id="mid">
<div >

<form action="locatii.php?id=<?=$nod['id']?>&id_p=<?=$nod['id_parent']?>" method="post" enctype="multipart/form-data">
        <br class="clear" />
         <h2>Modifica nume</h2>
         <label>Nume</label>
        <input name="locatie_mod" id="locatie_mod" type="text" class="tf b" value="<?=$nod['name']?>" />
        <input name="hidden_cat" id="hidden_cat"  type="hidden" value="1" />
        <br class="clear" />
        <br class="clear" />
        <label>&nbsp;</label>
<input type="submit" name="adauga" value="Modifica" class="ok" />
</form>
<br class="clear2" />
<div class="cell__ bbb ac"><a href="locatii.php?id=<?=$nod['id_parent']?>" ><strong><<&nbsp;&nbsp;&nbsp;INAPOI LA LOCATII</strong> </a></div>
</div></div></div></div>

<? include "include/footer.php";  ?>